package com.mxx.common.http;

import java.nio.charset.Charset;
import java.util.Map;

public interface HttpResponse {

    boolean isSuccessful();

    String getBody();

    byte[] getByte();

    int statusCode();

    String getContentType();

    long getContentLength();

    Charset getCharset();

    String getHeader(String headerName);

    Map toJson();

    <T> T toEntity(Class<T> classes);
}
